<ion-toolbar>
    <ion-buttons left>
      <button ion-button icon-only (click)="dismiss()">
        <ion-icon name="arrow-back" ></ion-icon>
      </button>
    </ion-buttons>
    <ion-title class="center w92">手机号登陆</ion-title>
</ion-toolbar>


<ion-content padding>

	<form [formGroup]="loginForm" (ngSubmit)="login(loginForm.value)">
		<ion-list>
			<ion-item>
				<ion-label item-left>
					<ion-icon md="md-phone-portrait" ios="ios-phone-portrait-outline"></ion-icon>
				</ion-label>
				<ion-input placeholder="手机号" value="{{getPhone}}" type="text" [formControl]="phone"></ion-input>
	  		</ion-item>
	  		<ion-item>
				<ion-label item-left>
					<ion-icon ios="ios-lock" md="md-lock"></ion-icon>
				</ion-label>
				<ion-input placeholder="密码" value="{{getPassword}}" type="password" [formControl]="password"></ion-input>
	  		</ion-item>
		</ion-list>
		<div padding>
	    	<button ion-button color="dark" block [disabled]="!loginForm.valid">立即登陆</button>
	  	</div>
	</form>



</ion-content>

